#!/usr/bin/expect

set timeout 30
spawn ssh alarmintegration@10.239.50.33 -p 8345 SendAlarms Agent1 -hbint 20
expect {
"yes/no" { send "yes\r"; exp_continue}
"assword:" { send "ENMoss12#\r"}
}
interact

